﻿@model hsgsSHXX.Model.PrvUser
@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <title>Add</title>
    <link href="@Url.Content("~/Content/Site.css", true)" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/jquery-ui.css", true)" rel="stylesheet" type="text/css" />

    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/jquery-ui.custom.min.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/My97DatePicker/WdatePicker.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/checkinput.js", true)" type="text/javascript"></script>

    @if (false)
    {
        <script src="../../../../Scripts/jquery-1.5.1-vsdoc.js" type="text/javascript"></script>
    }

    <script type="text/javascript">
        $(document).ready(function () {
            $("#btnSave").button();
            $("#btnSave").bind("click", function () {
                save();
            });
            $("#txtFAvailable_Date").bind("click", function () {
                myCalendar('yyyy-MM-dd')
            });
            $("#txtFBirthday").bind("click", function () {
                myCalendar('yyyy-MM-dd')
            });
            $("#lstSrc").bind("dblclick", function () {
                $("#lstSrc option:selected").appendTo("#lstTarget");

            });
            $("#lstTarget").bind("dblclick", function () {
                $("#lstTarget option:selected").appendTo("#lstSrc");

            });
            $('#txtFLogID').blur(function () {
                var val = $.trim($("#txtFLogID").val());
                var birthdayValue;
                
            });

            var hdjsAlert = $("#hdjsAlert").val();
            if (hdjsAlert != "") {
                alert(hdjsAlert);
            }
        });
        /*保存*/
        function save() {
            if (!validateFocus("txtFLogID", "身份证号", "NotEmpty", false)) {
                return false;
            }
            if (!validateFocus("txtFName", "姓名", "NotEmpty", false)) {
                return false;
            }
            $("#lstTarget").find("option").attr("selected", true);
            form1.submit();
        }
        function myCalendar(fmt) {
            WdatePicker({
                readOnly: true,
                dateFmt: fmt
            });
        }
    </script>

</head>
<body>
    @using (Html.BeginForm("Save", "User", FormMethod.Post, new { id = "form1" }))
    {
        <div style="padding: 0px; background: #efefef; width: 100%;">
            <input type="button" id="btnSave" value="保存" />
        </div>
        <div>
            <table width="100%" align="center" cellpadding="0" cellspacing="0" class="table">
                <tr>
                    <th>
                        <font color='red'>*</font>身份证号:
                    </th>
                    <td>
                        @Html.TextBox("txtFLogID", Model.FLogID, new { @style = "width:220px;", @readonly = "readonly" })</td>
                   
                <tr>
                    <th>
                        <font color='red'>*</font>姓名:
                    </th>
                    <td>
                        @Html.TextBox("txtFName", Model.FName, new { @style = "width:220px;" })</td>
                    @*<th>
                        用户性质:
                    </th>
                    <td align="left">
                        @Html.DropDownList("selFProp", ViewData["propSelection"] as List<SelectListItem>)</td>*@
                </tr>
            </table>
        </div>
        @Html.Hidden("hdResult", ViewData["result"]);
        @Html.Hidden("hdMethod", ViewData["hdMethod"]);
        @Html.Hidden("hdjsAlert", (ViewData["jsAlert"]));
    }
</body>
</html>
